//
//  BTMessageModel.h
//  BaiTengIM
//
//  Created by awh on 2019/6/29.
//  Copyright © 2019 awh. All rights reserved.
//

#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN

@interface BTMessageModel : NSObject

@property(nonatomic, assign) MessageDirection messageDirection;
@property(nonatomic, assign) MessageType messageType;
@property(nonatomic, assign) MessageStatus messageStatus;

// 接收消息
@property(nonatomic, assign) long long messageId;
@property(nonatomic, assign) NSInteger uid;
@property(nonatomic, copy) NSString *username;
@property(nonatomic, copy) NSString *avatar;
//@property(nonatomic, copy) NSString *type;
@property(nonatomic, copy) NSString *src;
@property(nonatomic, copy) NSString *content;
@property(nonatomic, copy) NSString *time;
@property(nonatomic, assign) NSInteger msgtype;
@property(nonatomic, assign) NSInteger specialType;
@property(nonatomic, assign) NSInteger groupId;
@property(nonatomic, assign) BOOL authority;
@property(nonatomic, assign) BOOL mine;
@property(nonatomic, assign) long long timestamp;
@property(nonatomic, assign) long long updateTimestamp;  //该条消息插入数据库的时间，用于删除3个小时以外的数据
@property(nonatomic, assign) long long cid;
@property(nonatomic, copy) NSString *toIds;
@property(nonatomic, copy)  NSString *toId;

//接收消息新的
@property(nonatomic, copy) NSString *clientuuid;
@property(nonatomic, copy) NSString *createtime;
@property(nonatomic, copy) NSString *head;
@property(nonatomic, copy) NSString *msg;
@property(nonatomic, copy) NSString *msg_id;
@property(nonatomic, copy) NSString *nickname;
@property(nonatomic, copy) NSString *rfuuid;
@property(nonatomic, copy) NSString *uuid;
@property(nonatomic, copy) NSString *gidorfuuid;
@property(nonatomic, assign)NSInteger chatType;
@property(nonatomic, copy) NSString *fuuid;
@property(nonatomic, copy) NSString *f_uuid;
@property(nonatomic, copy) NSString *type;
@property(nonatomic, copy) NSString *g_id;
@property(nonatomic, copy) NSString *gId;
@property(nonatomic, copy) NSString *token;
@property(nonatomic, copy) NSString *udid;
@property(nonatomic, assign) NSInteger type_id;
@property(nonatomic, copy) NSString *ishow;
@property(nonatomic, copy) NSString *remark;
@property(nonatomic, copy) NSString *groupName;
@property(nonatomic, copy) NSString *groupHead;


@property(nonatomic, assign) NSInteger addfriendState; //0未处理  加好友 1同意了 2拒绝了


// 发送消息
@property(nonatomic, assign) NSInteger receiveUid;

// 会话数据库主键id
@property(nonatomic, copy) NSString *keyid;
// 聊天记录关键字搜索
@property(nonatomic, copy) NSString *searchKeywords;
// 会话列表未读消息数
@property(nonatomic, assign) NSInteger unreadCount;
// 离线未读数
@property(nonatomic, assign) NSInteger offlineUnreadCount;
// 会话列表置顶聊天
@property(nonatomic, assign) BOOL top;
// 置顶时间
@property(nonatomic, assign) long long topTimestamp;
// 是否屏蔽通知
@property(nonatomic, assign) BOOL ignore;
// 是否被@
@property(nonatomic, assign) BOOL isAt;

@property(nonatomic, assign) CGFloat cellHeight;


@end

NS_ASSUME_NONNULL_END
